/*访问后台的代码*/
layui.define([], function(exports) {
    var api={
            updateEnterprise:function(form,callback){
                Lib.submitForm("/cms/enterprise/update.json",form,{},callback)
            },
            addEnterprise:function(form,callback){
                Lib.submitForm("/cms/enterprise/add.json",form,{},callback)
            },

            del:function(ids,callback){
                Common.post("/cms/enterprise/delete.json",{"ids":ids},function(){
                    callback();
                })
            } ,
        invalid:function(ids,callback){
            Common.post("/cms/enterprise/invalid.json",{"ids":ids},function(){
                callback();
            })
        } ,
        exportExcel:function(form,callback){
            var formPara = form.serializeJson();
            Common.post("/cms/enterprise/excel/export.json", formPara, function(fileId) {
                callback(fileId);
            })
        }

    };
    exports('enterpriseApi',api);
});